package com.ynet.eq.haiqing.common.utils;

import com.ynet.eq.mqtt.properties.MqttProperties;

import javax.annotation.Resource;
import java.util.UUID;

/**
 * @author 胡超雄
 * @date 2021/7/1 11:47
 * @desc 生成唯一消息id
 */

public class GenerateMessageIdUtil {
    /**
     * 生成唯一消息id
     *
     * @return
     */
    public static  String generateMessageId() {

        return  "ID:haiqing-"+  UUID.randomUUID();
    }
}
